{extend name="layout/base" /}
{block name="main"}
<div class="news">
    <div class="container">
        <div class="index-title txt-c">
            <em>你的梦想我很在意 更支持</em>
            <div class="line">
                <h3>酒店客房</h3>
            </div>
        </div>
        <div class="news-list c">
            <ul>
                <div style="padding: 20px 40px">
                    <form action="../room" class="search-form">
                        <input type="text" name="name" class="form-control" placeholder="请输入房间名"
                               value="{$Request.get ? $Request.get.name : ''}">
                        <button type="submit">搜索</button>
                    </form>
                </div>
                <table width="98%" height="7%" border="0" align="center" cellpadding="0" cellspacing="0">
                    {foreach $roomChunkList as $roomList}
                    <tr>
                        {foreach $roomList as $room}
                        <td height="165" align="center">
                            <table width="150" height="160" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="123" align="center">
                                        <a href="/room/{$room.id}">
                                            <img src="{$room.image}" width="210" height="250" border="0" style="border-radius: 18px;" />
                                        </a>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="25" align="center">{$room.name}</td>
                                </tr>
                            </table>
                        </td>
                        {/foreach}
                    </tr>
                    {/foreach}
                </table>
                <p>
                </p>
                <div class="fy"><a href="room?page=1">首页</a> <a href="room?page={$page-1}">前一页</a> <a
                        href="room?page={$page+1}">后一页</a> <a
                        href="room?page={$totalPage}">末页</a>
                    当前第{$page}页,共{$totalPage}页 以上数据共
                    {$total}条,
                </div>

            </ul>
        </div>

    </div>
</div>
{/block}
